package views.components.oppm.viewer
{
	import mx.charts.AxisLabel;
	import mx.controls.Label;
	import mx.core.IDataRenderer;
	import mx.core.IFlexDisplayObject;

	public class BudgetAxisLabelRenderer extends Label implements IDataRenderer, IFlexDisplayObject 
	{
		public function BudgetAxisLabelRenderer()
		{
			super();
		}
		private var _data:AxisLabel;

		override public function get data():Object{
			return _data;
		}
		
		override public function set data(value:Object):void{
			if(value != null)
			{
				this.text = (value as AxisLabel).text;
				this._data = value as AxisLabel;
				this.setStyle('font-size',14);
				this.height = 20;
			}
		}
	}
}